﻿<UserControl x:Class="Hopscotch.Presentation.Controls.Views.NotificationView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             
             xmlns:prismInrctns="clr-namespace:Microsoft.Practices.Prism.Interactivity.InteractionRequest;assembly=Microsoft.Practices.Prism.Interactivity"
             xmlns:local="clr-namespace:Hopscotch.Presentation.Controls.Views"
             mc:Ignorable="d" 
             
             x:Name="NotificationControl"
             d:DesignHeight="200" d:DesignWidth="300"
             d:DataContext="{d:DesignInstance Type=prismInrctns:Notification, IsDesignTimeCreatable=True}">
    <Grid Background="#44000000"
              HorizontalAlignment="Stretch"
              VerticalAlignment="Stretch" >
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Border Grid.Row="1" Grid.Column="1"
                BorderThickness="1" CornerRadius="2" >
            <StackPanel Background="Gainsboro">
                <Border BorderBrush="Black" BorderThickness="1 1 1 1" Background="DarkGray">
                    <TextBlock Text="{Binding Path=Notification.Title, ElementName=NotificationControl, FallbackValue='Missing Title'}" 
                                FontWeight="Bold" Margin="8,2,8,2" />
                </Border>
                <TextBox
                        DockPanel.Dock="Top"
                        MaxHeight="100" Background="Gainsboro"
                        BorderThickness="0" Margin="4 4 4 4"
                        HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"
                        TextWrapping="Wrap"
                        Text="{Binding Path=Notification.Content, ElementName=NotificationControl, FallbackValue='Missing Content'}">
                </TextBox>
                <Button Command="{Binding Path=CloseNotificationCommand, ElementName=NotificationControl}" Margin="8,4,8,4">Close</Button>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
